/**
 * 
 */
package com.aat.dxfy.thread.demo01;

/**
 * @date 2016年6月29日 下午2:43:21
 * @author 新歌<xingeking@163.com>
 * @email  xingeking@163.com
 * @version v1.0
 * @function 功能是：
 * @info java spring 
 * @update none
 */
public class Test11Safe03 extends Thread{
	private Account2 account;
	private Integer quqian;
	
	public Test11Safe03(String name,Account2 account, Integer quqian) {
		super(name);
		this.account = account;
		this.quqian = quqian;
	}

	public void run() {
		account.quqian(quqian);
	}


	public static void main(String[] args) {
		long l1 = System.currentTimeMillis();
		Account2 account=new Account2("12345666", 1000);
		new Test11Safe03("甲",account, 800).start();
		new Test11Safe03("乙",account, 800).start();
		long l2 = System.currentTimeMillis();
		System.out.println((l2 - l1) + " 毫秒");
	}

}
